package com.cn.demo4.mapper;

import com.cn.demo4.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    List<UserEntity> findAll(UserEntity userEntity);
    UserEntity findByPhoneAndPassword(UserEntity userEntity);

    int del(Integer id);

    String editPassword(UserEntity userEntity);

    int edit(UserEntity userEntity);

    UserEntity findById(Integer id);

    UserEntity findByUserName(String userName);

    int add(UserEntity userEntity);

    UserEntity findByPhone(String phone);

    int getCount(UserEntity userEntity);
}
